package com.tvpush.manage.core.controller;

import com.tvpush.manage.common.controller.CreateController;
import com.tvpush.manage.common.controller.QueryController;
import com.tvpush.manage.common.controller.UpdateController;
import com.tvpush.manage.core.entity.Brand;
import com.tvpush.manage.core.service.BrandService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 品牌相关接口
 *
 * @author ouyangzn
 * @data 2019-03-23
 */
@RestController
@RequestMapping(value = "/api/tvpush/brand")
@Api(tags = {"品牌管理"})
public class BrandController implements QueryController<Brand, String, BrandService>, CreateController<Brand, BrandService>, UpdateController<Integer, Brand, BrandService> {

    @Autowired
    private BrandService brandService;

    @Override
    public BrandService getService() {
        return brandService;
    }
}
